package com.tywj.panda.home.provider

import android.app.Activity
import com.tywj.panda.customer.common.provider.IHomeService
import com.tywj.navigation.api.NavigationApi
import com.tywj.panda.home.route.HomeRoute
import com.tywj.lib.core.common.view.BaseFragment
import com.tywj.lib.net.retrofit.request.GetRequest
import com.tywj.lib.route.Route
import com.tywj.lib.route.RouteNavigation
import com.tywj.panda.home.api.HomeApi


/**
 * @desc 首页组件导航
 * @author June Yang
 * @date 2020/5/8
 */

@Route(path = HomeRoute.HOME_SERVICE)
class HomeServiceImpl : IHomeService {

    override fun getHomeFragment(activity: Activity): BaseFragment {
        return HomeRoute.getHomeFragment(activity)
    }

    /**
     * 线路详情
     */
    override fun getCRMLineDetails(lineCode: String): GetRequest {
        return HomeApi.getCRMLineDetails(lineCode)
    }

    /**
     * 获取车辆轨迹
     */
    override fun getGpsRoute(lineCode: String): GetRequest {
        return HomeApi.getGpsRoute(lineCode)
    }
}